<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <title>用户信息</title>
</head>

<body class="bg-gray-100">
    <!-- 导航栏 -->
    <nav class="bg-blue-600 text-white p-4 h-16">
        <div class="container mx-auto flex justify-between items-center">
            <h1 class="text-2xl font-bold">用户信息</h1>
            <ul class="flex space-x-4">
                <li><a href="{{ url_for('dashboard') }}" class="hover:text-gray-300">数据大屏</a></li>
                <li><a href="{{ url_for('home') }}" class="hover:text-gray-300">首页</a></li>
                <li><a href="{{ url_for('index') }}" class="hover:text-gray-300">预测</a></li>
                <li><a href="{{ url_for('user') }}" class="hover:text-gray-300">用户</a></li>
            </ul>
        </div>
    </nav>
    <!-- 用户信息表单 -->
    <div class="container mx-auto py-8 px-4">
        <div class="bg-white p-8 rounded-lg shadow-md max-w-md mx-auto">
            <h1 class="text-3xl font-bold text-gray-800 mb-6">用户信息</h1>
            <form action="{{ url_for('reviseuser') }}" method="post">
                <div class="mb-6">
                    <label for="realname" class="block text-gray-700 text-sm font-bold mb-2">用户姓名</label>
                    <input type="text" id="realname" name="realname" placeholder="请输入用户姓名"
                        class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
                </div>
                <div class="mb-6">
                    <label for="id_card" class="block text-gray-700 text-sm font-bold mb-2">身份证号</label>
                    <input type="text" id="idcard" name="idcard" placeholder="请输入身份证号"
                        class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
                </div>
                <div class="mb-6">
                    <label for="oldpassword" class="block text-gray-700 text-sm font-bold mb-2">旧密码</label>
                    <input type="password" id="oldpassword" name="oldpassword" placeholder="请输入旧密码"
                        class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500" title="如果您需要更改密码">
                </div>
                <div class="mb-6">
                    <label for="newpassword" class="block text-gray-700 text-sm font-bold mb-2">新密码</label>
                    <input type="password" id="newpassword" name="newpassword" placeholder="请输入新密码"
                        class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500" title="如果您需要更改密码">
                </div>
                <div class="mb-6">
                    <label for="phone" class="block text-gray-700 text-sm font-bold mb-2">手机号</label>
                    <input type="text" id="phone" name="phone" placeholder="请输入手机号"
                        class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:border-blue-500">
                </div>
                <div class="mb-6">
                    <input type="submit" value="保存信息" class="my-cta-button bg-blue-600 text-white p-2 rounded w-full hover:bg-blue-700">
                </div>
            </form>
        </div>
    </div>
</body>

</html>